package nix.demo3.dao;

import nix.commons.CommonUtils;
import nix.demo3.domain.Customer;

import org.junit.Test;

public class TestCustomer {

	@Test
	public void add() {
		CustomerDao customerDao = new CustomerDao();
		for (int i = 0; i < 300; i++) {
			Customer c = new Customer();
			c.setCid(CommonUtils.uuid());
			c.setCname("c_" + (i + 1));
			c.setGender(i % 2 == 0 ? "男" : "女");
			c.setBirthday("2018-07-22");
			c.setCellphone(135999 + "" + (90000 + i));
			c.setEmail("c_" + (i + 1) + "@nix.cn");
			c.setDescription("我是c_" + (i + 1));
			customerDao.add(c);
		}
	}
}
